import React from 'react';
import { Text } from 'ink';

interface CodeBlockProps {
  code: string;
  language?: string;
  theme?: 'dark' | 'light';
}

const CodeBlock: React.FC<CodeBlockProps> = ({ 
  code, 
  language = 'text',
  theme = 'dark' 
}) => {
  // 简化版代码高亮，避免依赖问题
  const getCodeColor = () => {
    return theme === 'dark' ? 'gray' : 'black';
  };

  return (
    <Text color={getCodeColor()}>
      {code}
    </Text>
  );
};

export default CodeBlock;